package shared;

public enum Opcode
{
    /** CLIENT **/
    C_REGISTER,
    C_LOGIN,
    C_LOGOUT,
    C_PONG,
    
    /** SERVER **/
    S_REG_OK,
    S_REG_NO,
    S_AUTH_OK,
    S_AUTH_NO,
    S_LOGOUT,
    S_PING;
    
    public static Opcode getOpcode(int code)
    {
        return Opcode.values()[code];
    }
};
